<?php
/**
 *	@name		V认证
 *	@author		Jeffery
 *	@qq			1017756891
 *	@email		1017756891@qq.com
 *	@website	http://www.iweitao.net
**/
require_once "core.php";
$uid = $global->_get("uid");
$checktype = $global->_get("checktype");
$gkey = $global->_get("key");
$md5gkey = md5($gkey);

$checktypes = array('1','2','count');
$md5key = md5($key);

if(!in_array($checktype,$checktypes)) {
	exit("Access Define");
}

if($md5key !== $md5gkey || $gkey !== $key) {
	exit("-1");
}
if($checktype == 1) {
	if($uid == null) {
		$result = GET_USER_V_INFO(FALSE,1);
	} else {
		$result = GET_USER_V_INFO($uid,1);
	}
} else if($checktype == 'count') {
	$result = GET_USER_V_INFO(FALSE,1);
	$result[0] = count($result);
}
$result = serialize($result);
echo $result;

